#include <stdio.h>
#include <gst/gst.h>

void prueba (){
    printf("hice algo!! \n");
    GstElement *bin = gst_pipeline_new ("pipeline");
    g_assert(bin);
    GstElement *testSrc = gst_element_factory_make("videotestsrc", "source");
    g_assert(testSrc);
    GstElement *videoOut = gst_element_factory_make("autovideosink", "video out");
    g_assert(videoOut);

    gst_bin_add_many(GST_BIN(bin), testSrc, videoOut, NULL);
    gst_element_link_many(testSrc, videoOut, NULL);
    gst_element_set_state(GST_ELEMENT(bin), GST_STATE_PLAYING);
}

